package crono;

public class Cronometro {
	private long start = -1;
	private long durationMs = -1;

	public void start() {
		start = System.currentTimeMillis();
	}

	public void stop() {
		long end = System.currentTimeMillis();
		durationMs = end - start;
	}

	public void print(String msg) {
		System.out.println(msg + ". Duration: " + durationMs + " ms.");
	}
}
